package com.example.transactionhintassistant.pojo.weeklyplan;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Schema(description = "周计划事务添加类")
@Data
public class AddTaskByWeeklyPlanDto implements Serializable {
    /**
     * 事务标题
     */
    @Schema(description = "添加事务标题")
    @NotEmpty(message="事务标题不能为空")
    private String taskTitle;

    /**
     * 内容
     */
    @Schema(description = "添加事务内容")
    @NotEmpty(message="事务内容不能为空")
    private String content;

    /**
     * 时间
     */
    @Schema(description = "添加事务时间")
    @NotNull(message="事务时间不能为空")
    private Date time;

    /**
     * 提醒级别
     */
    @Schema(description = "添加事务提醒级别")
    @NotNull(message="事务提醒级别不能为空")
    private Integer reminderLevel;

    /**
     *星期数
     */
    @Schema(description = "添加事务星期数")
    @NotEmpty(message="事务星期数不能为空")
    private String dayOfWeek;

    /**
     *周计划id
     */
    @Schema(description = "添加事务周计划id")
    @NotNull(message="周计划id不能为空")
    private Integer weeklyPlanId;
}
